import { Plugin } from '@/stores/plugin'

// 插件列表数据
export const mockPlugins: Plugin[] = [
  {
    id: 'com.kld.md.modelDesigner',
    name: 'ModelDesigner',
    version: '1.0.2',
    compatibleVersion: '231 - 243.*',
    developer: 'moyin',
    description: 'A powerful plugin for enhancing IntelliJ IDEA workflow. Supports code generation, UI automation, and integration with third-party tools.',
    isActive: true,
    contact: '824000672@qq.com',
    dependencies: [
      'com.intellij.modules.platform',
      'com.intellij.java',
      'org.jetbrains.idea.maven'
    ],
    extensionPoints: [
      'moduleResourceLifeCycleListener com.kld.md.openapi.module.ModuleResourceLifeCycleListener',
      'projectResourceInitializationListener com.kld.md.openapi.project.ProjectResourceInitializationListener'
    ]
  },
  {
    id: 'com.example.codeformatter',
    name: 'CodeFormatter',
    version: '2.1.0',
    compatibleVersion: '223 - 241.*',
    developer: 'Example Inc.',
    description: 'Automatically formats your code according to predefined style guides. Supports multiple languages.',
    isActive: false
  },
  {
    id: 'org.example.gitintegration',
    name: 'GitIntegration',
    version: '3.4.2',
    compatibleVersion: '222 - 243.*',
    developer: 'Git Tools',
    description: 'Enhanced Git integration with visual diff tools, conflict resolution, and branch management.',
    isActive: true,
    dependencies: [
      'com.intellij.modules.platform',
      'com.intellij.vcs'
    ]
  },
  {
    id: 'com.example.databasetools',
    name: 'DatabaseTools',
    version: '1.5.3',
    compatibleVersion: '221 - 242.*',
    developer: 'Database Team',
    description: 'Comprehensive database management tools with support for multiple database types.',
    isActive: false
  }
]

// 插件统计数据
export const mockPluginStats = {
  totalPlugins: 256,
  growthRate: 18.5,
  activeRate: 68.2,
  downloadStats: {
    totalDownloads: 1280560,
    growthRate: 28.7,
    timeLabels: ['一月', '二月', '三月', '四月', '五月', '六月'],
    downloadData: [185200, 220150, 256300, 298700, 345890, 374320],
    popularPlugins: [
      {
        name: 'ModelDesigner',
        version: '1.0.2',
        downloads: 352800,
        percentage: 27.5
      },
      {
        name: 'GitIntegration',
        version: '3.4.2',
        downloads: 245600,
        percentage: 19.2
      },
      {
        name: 'CodeFormatter',
        version: '2.1.0',
        downloads: 198400,
        percentage: 15.5
      },
      {
        name: 'DatabaseTools',
        version: '1.5.3',
        downloads: 142800,
        percentage: 11.2
      },
      {
        name: 'ThemeManager',
        version: '1.2.1',
        downloads: 98700,
        percentage: 7.7
      }
    ]
  },
  categoryDistribution: [
    {
      categoryName: '开发工具',
      count: 86,
      percentage: 33.6
    },
    {
      categoryName: '集成扩展',
      count: 65,
      percentage: 25.4
    },
    {
      categoryName: '代码生成',
      count: 48,
      percentage: 18.8
    },
    {
      categoryName: '数据处理',
      count: 32,
      percentage: 12.5
    },
    {
      categoryName: '其他工具',
      count: 25,
      percentage: 9.7
    }
  ]
}

// 插件分类数据
export const mockPluginCategories = [
  {
    id: 'dev-tools',
    name: '开发工具',
    description: '提高开发效率的工具集合',
    icon: 'fas fa-tools',
    count: 86
  },
  {
    id: 'integration',
    name: '集成扩展',
    description: '与第三方工具集成的插件',
    icon: 'fas fa-plug',
    count: 65
  },
  {
    id: 'code-gen',
    name: '代码生成',
    description: '自动生成代码的插件',
    icon: 'fas fa-code',
    count: 48
  },
  {
    id: 'data-processing',
    name: '数据处理',
    description: '数据处理和分析工具',
    icon: 'fas fa-database',
    count: 32
  },
  {
    id: 'others',
    name: '其他工具',
    description: '其他类型的插件',
    icon: 'fas fa-cube',
    count: 25
  }
]

// 插件版本历史数据
export const mockPluginVersions = {
  'com.kld.md.modelDesigner': [
    {
      version: '1.0.2',
      releaseDate: '2024-03-15',
      changes: [
        '新增代码生成功能',
        '优化UI交互体验',
        '修复已知bug'
      ],
      downloads: 352800,
      rating: 4.8
    },
    {
      version: '1.0.1',
      releaseDate: '2024-02-20',
      changes: [
        '修复性能问题',
        '更新依赖版本'
      ],
      downloads: 289600,
      rating: 4.6
    },
    {
      version: '1.0.0',
      releaseDate: '2024-01-10',
      changes: [
        '初始版本发布'
      ],
      downloads: 156200,
      rating: 4.5
    }
  ]
} 